import { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw = {
  path: 'static',
  name: 'static',
  component: ()=>import('@/layout/components/Parent.vue'),
  meta: {
    title: '媒体资源',
    icon: 'VideoCamera'
  },
  children: [
    {
      path: 'videoList',
      name: 'videoList',
      component: () => import('@/views/static/video/index.vue'),
      meta: {
        title: '视频列表',
        requiresAuth: true,
        keepAlive: true
      },
    },
    {
      path: 'imageList',
      name: 'imageList',
      component: () => import('@/views/static/image/index.vue'),
      meta: {
        title: '图片列表',
        requiresAuth: true,
        keepAlive: true
      },
    },
    {
      path: 'fileList',
      name: 'fileList',
      component: () => import('@/views/static/file/index.vue'),
      meta: {
        title: '文件列表',
        requiresAuth: true,
        keepAlive: true
      },
    },
    {
      path: 'audioList',
      name: 'audioList',
      component: () => import('@/views/static/audio/index.vue'),
      meta: {
        title: '音频列表',
        requiresAuth: true,
        keepAlive: true
      },
    }
  ],
};

export default routes;
